import request from '@/utils/request'

export function getFoodList(params) {
  console.log(params)
  return request({
    url: '/food/selectAddFood',
    method: 'post',
    data: params
  })
}

export function uploadImg(params) {
  return request({
    url: '/uploadFile',
    method: 'post',
    data: params
  })
}

export function addFood(params) {
  return request({
    url: '/food/addFood',
    method: 'post',
    data: params
  })
}

export function updateFood(params) {
  return request({
    url: '/food/updateFood',
    method: 'post',
    data: params
  })
}

export function deleteFood(params) {
  return request({
    url: '/food/deleteFood',
    method: 'post',
    data: params
  })
}
